package com.lianjia.sh.tools.msg.v2.message.impl;

import com.lianjia.sh.tools.msg.v2.message.PnsTextMsg;
import com.lianjia.sh.tools.msg.v2.sender.PnsSender;
import com.lianjia.sh.tools.msg.v2.sender.Sender;

/**
 * Created by yangsp1 on 16/6/24.
 */
public class PnsTextMsgImpl implements PnsTextMsg {

    //必填：消息内容
    String remark;

    //必填：员工工号 多个人用逗号隔开
    String recipients;

    //非必填：着陆页 默认是0
    Integer touchdown;

    @Override
    public boolean isMatch(Sender sender) {
        return sender instanceof PnsSender;
    }

    @Override
    public void invokSend(Sender sender) {
        ((PnsSender)sender).send(this);
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRecipients() {
        return recipients;
    }

    public void setRecipients(String recipients) {
        this.recipients = recipients;
    }

    public Integer getTouchdown() {
        return touchdown;
    }

    public void setTouchdown(Integer touchdown) {
        this.touchdown = touchdown;
    }
}
